package com.omesoft.hksnore.util.data;

import com.omesoft.hksnore.util.entity.TempDate;

import java.util.Comparator;

/**
 * Created by BigFace on 2017/3/21.
 *
 * 根据时间排序
 */

public class SortComparator implements Comparator<TempDate> {

    @Override
    public int compare(TempDate o1, TempDate o2) {
        TempDate c1 = o1;
        TempDate c2 = o2;
        int flag = c1.getDate().compareTo(c2.getDate());
        return flag;
    }
}